package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel(description = "商品信息")
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods")
public class Goods {
    @ApiModelProperty(value = "商品ID")
    @TableId(value = "good_id",type = IdType.AUTO)
    private Integer goodId;
    @ApiModelProperty(value = "商品价格",required = true)
    private int goodPrice;
    @ApiModelProperty(value = "商品库存",required = true)
    private int goodStock;
    @ApiModelProperty(value = "商品名称",required = true)
    private String goodName;
    @ApiModelProperty(value = "商家ID",required = true)
    private int businessId;
    @ApiModelProperty(value = "商品图片",required = true)
    private String goodImage;
    @TableField(exist = false)
    private String orderId;
    @TableField(exist = false)
    private String shipStatus;
}
